#include<stdio.h>
int main()
{
	int n,counter=1,accumulate=1,x;
	scanf("%d",&n);
	while(counter<n)
	{
		scanf("%d",&x);
		if((x<100)&&(x>-100)&&(x%2!=0))
		{
			accumulate=accumulate*x;
			counter++;
			printf("%d",accumulate);
				
		}
		if((x<=-100)||(x>=100))
			printf("error");		
	}
	
	
	return 0;
}